package com.ma.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class YmlController {
    @Value("${person.name}")
    private String name;
    @Value("${person.age}")
    private String age;
    @Value("${person.isBoss}")
    private Boolean isBoss;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }



    @GetMapping("/ooo")
    public void getMessage(){
        System.out.println("name: "+getName()+" age: "+getAge()+" isboss :"+isBoss);
    }
}
